<layout name="layout"/>

<p>
<!-- Button trigger modal -->
<button type="button" class="uk-button uk-button-success" data-uk-modal="{target:'#myModal',center:true}">
{$Think.lang.add_new}
</button>
<a class="uk-button uk-button-primary" href="__CONTROLLER__/clearCache/channel_list">
{$Think.lang.refresh_cache}
</a>
</p>
<form class="uk-form">

    <div class="uk-grid">
        <div class="uk-width-1-4">#:<input type="text" name="cn_id" placeholder="" class="uk-width-1-1"></div>
	    <div class="uk-width-1-4">通道名:<input type="text" name="cn_name" placeholder="" class="uk-width-1-1"></div>
		<div class="uk-width-1-4">KEY1:<input type="text" name="cn_key1" placeholder="" class="uk-width-1-1"></div>
        <div class="uk-width-1-4">是否激活:<select name="cn_isactive">
		<option value="">--</option>
		<option value="1">是</option>
		<option value="0">否</option>
		</select>
		</div>
    </div>
	<p>
<button type="submit" class="uk-button uk-button-danger">搜索</button>
</p>
</form>

          <div class="uk-overflow-container">
            <table class="uk-table uk-table-hover uk-table-striped uk-table-condensed">
<thead>
<tr>
<td>#</td>
<td>{$Think.lang.cn_name}</td>
<td>key1</td>
<td>key2</td>

<td>{$Think.lang.desc}</td>
<td>{$Think.lang.remark}</td>
<td>{$Think.lang.status}</td>
<td>{$Think.lang.cn_currency}</td>
<td>{$Think.lang.add_time}</td>
<td>--</td>
</tr>
</thead>
<tbody>
<volist name="list" id="vo">
<tr>
<td><a href="__CONTROLLER__/details/{$vo.cn_id}">{$vo.cn_id}</a></td>
<td>{$vo.cn_name}</td>
<td>{$vo.cn_key1|cut_str='20'}</td>
<td>{$vo.cn_key2|cut_str='20'}</td>

<td>{$vo.cn_desc}</td>
<td>{$vo.cn_remark|cut_str='20'}</td>
<td>{$vo.cn_isactive|displayIcon}</td>
<td>{$vo.cn_currency}</td>
<td>{$vo.cn_time}</td>
<td>
				<a href="javascript:void(0)" onclick="confirmDelete('__CONTROLLER__/deleteHandle/{$vo.cn_id}')">
				<i class="uk-icon-trash"></i>
				</a>
</td>
</tr>
</volist>
</tbody>
</table>
<p>
{$page}
</p>

<!-- Modal -->
<div class="uk-modal" id="myModal">
<form id="validate_form" class="uk-form"  method="post" action="__CONTROLLER__/addHandle">
    <div class="uk-modal-dialog"> <a class="uk-modal-close uk-close"></a>
        <div class="uk-modal-header">{$Think.lang.add_new}</div>
		
 <table class="uk-table"> 
<tr>
<td width=140>{$Think.lang.cn_name}</td><td>
<input type="text" name="cn_name" required />
</td>
</tr> 
<tr>
<td width=100>key1</td><td>
<input type="text" name="cn_key1"  required />
</td>
</tr> 
<tr>
<td width=100>key2</td><td>
<input type="text" name="cn_key2"  />
</td>
</tr> 
<tr>
<td width=100>key3</td><td>
<input type="text" name="cn_key3"  />
</td>
</tr> 
<tr>
<td width=100>key4</td><td>
<input type="text" name="cn_key4"  />
</td>
</tr> 
<tr>
<td width=100>{$Think.lang.desc}</td><td>
<input type="text" name="cn_desc" required />
</td>
</tr> 
<tr>
<td width=100>{$Think.lang.remark}</td><td>
<textarea type="text" name="cn_remark" style="height:80px;" ></textarea>
</td>
</tr> 
<tr>
<td width=100>{$Think.lang.status}</td><td>
<label><input type="radio" name="cn_isactive" value="1" checked />{$Think.lang.yes}</label>&nbsp;&nbsp;
<label><input type="radio" name="cn_isactive" value="0" />{$Think.lang.no}</label>
</td>
</tr> 
<tr>
<td width=100>{$Think.lang.cn_currency}</td><td>
<select class="easyui-combobox" name="cn_currency">
<volist name=":getObjectList('exchange')" id="vo">
<option value="{$vo.ex_currency_name}">{$vo.ex_currency_name}</option>
</volist>
</select>
</td>
</tr> 
</table>
        <div class="uk-modal-footer uk-text-right">
		<button class="uk-button uk-button-danger" type="submit">{$Think.lang.save}</button>
		</div>
 
</div>
</form>
</div>
